package com.haina.vote.service;

import com.haina.vote.entity.KqFwModel;
import com.haina.vote.entity.KqFwPerformance;

import java.util.List;

public interface IKqFwService {
    public List<KqFwModel> findTask(Integer page, Integer pageSize);

    public Integer addTask(KqFwModel kqFwModel);

    public int addPerformance(KqFwPerformance kqFwPerformance);

    public int deleteTask(Integer id);

    public KqFwModel findTaskById(Integer id);

    public void updateTask(KqFwModel kqFwModel);

    public int updatePerformance(KqFwPerformance kqFwPerformance);
    //查询最新的一条数据
    public KqFwModel findTaskMaxTime();
    //通过接受操作参数，修改任务单的状态
    public int setStatus(Integer id, Integer status);
    //修改反馈资料的路径
    public int updateMeansUrl(KqFwModel param);


    public KqFwModel downloadMeans(Integer id);

    public int updatefeedback(KqFwModel kqFwModel);

    public List<KqFwModel> findTaskByName(Integer page, Integer pageSize, String tl);

    public int deletePerformanceById(Integer id);

    public int findIsExist(Integer id);

    public int findPerformanceByPid(Integer pid);
    //驳回处理
    public int reject(Integer reject_taskId,Integer reject_taskStatus,String reject_Info);
}
